package com.cnfangmao.masterdata.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 字段元数据表
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
@TableName("t_basic_data_field_metadata")
public class BasicDataFieldMetadata implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字段元数据Id
     */
    @TableId("field_id")
    private String fieldId;
    /**
     * 主数据元数据Id
     */
    @TableField("metadata_id")
    private String metadataId;
    /**
     * 字段英文名称
     */
    @TableField("field_code")
    private String fieldCode;
    /**
     * 字段中文名称
     */
    @TableField("field_name")
    private String fieldName;
    /**
     * 字段类型
1：字符串
2：整型
3：长整型
4：浮点型
5：日期
6：文件

     */
    @TableField("field_type")
    private Integer fieldType;
    /**
     * 字段长度
     */
    @TableField("field_length")
    private Integer fieldLength;
    /**
     * 是否不允许为空
     */
    @TableField("is_not_null")
    private Integer isNotNull;
    /**
     * 是否唯一
     */
    @TableField("is_unique")
    private Integer isUnique;
    /**
     * 是否在列表中显示
     */
    @TableField("is_show")
    private Integer isShow;
    /**
     * 枚举类型Id
     */
    @TableField("enum_type_id")
    private String enumTypeId;
    /**
     * 列表中显示顺序
     */
    @TableField("show_index")
    private Integer showIndex;
    /**
     * 创建时间
     */
    @TableField("created_on")
    private Date createdOn;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 修改时间
     */
    @TableField("modified_on")
    private Date modifiedOn;
    /**
     * 修改人
     */
    @TableField("modified_by")
    private String modifiedBy;


    public String getFieldId() {
        return fieldId;
    }

    public void setFieldId(String fieldId) {
        this.fieldId = fieldId;
    }

    public String getMetadataId() {
        return metadataId;
    }

    public void setMetadataId(String metadataId) {
        this.metadataId = metadataId;
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public void setFieldCode(String fieldCode) {
        this.fieldCode = fieldCode;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Integer getFieldType() {
        return fieldType;
    }

    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public Integer getIsNotNull() {
        return isNotNull;
    }

    public void setIsNotNull(Integer isNotNull) {
        this.isNotNull = isNotNull;
    }

    public Integer getIsUnique() {
        return isUnique;
    }

    public void setIsUnique(Integer isUnique) {
        this.isUnique = isUnique;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getEnumTypeId() {
        return enumTypeId;
    }

    public void setEnumTypeId(String enumTypeId) {
        this.enumTypeId = enumTypeId;
    }

    public Integer getShowIndex() {
        return showIndex;
    }

    public void setShowIndex(Integer showIndex) {
        this.showIndex = showIndex;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getModifiedOn() {
        return modifiedOn;
    }

    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    @Override
    public String toString() {
        return "BasicDataFieldMetadata{" +
        "fieldId=" + fieldId +
        ", metadataId=" + metadataId +
        ", fieldCode=" + fieldCode +
        ", fieldName=" + fieldName +
        ", fieldType=" + fieldType +
        ", fieldLength=" + fieldLength +
        ", isNotNull=" + isNotNull +
        ", isUnique=" + isUnique +
        ", isShow=" + isShow +
        ", enumTypeId=" + enumTypeId +
        ", showIndex=" + showIndex +
        ", createdOn=" + createdOn +
        ", createdBy=" + createdBy +
        ", modifiedOn=" + modifiedOn +
        ", modifiedBy=" + modifiedBy +
        "}";
    }
}
